import { defineAsyncComponent } from 'vue';
import Spinner from './Spinner';
// 异步组件

export default defineAsyncComponent({
// 加载函数
loader: () => import('./component/Payment.vue'),
loadingComponent: Spinner,
delay: 0,
onError(error, retry) {
  console.log('Retrying to load component', error);
  retry();
}
})
